package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class HelloController {
    @RequestMapping("/sayHi")
    public String sayHi(){
        return "Hello,Spring~";
    }

    @RequestMapping("/sayHello")
    public String sayHello(){
        return "Hello,Spring MVC~";
    }
}
